package com.billing.model.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.billing.model.entity.TUserPayReport;

public interface UserPayReportBeanMapper {

	/**
	 * 获取薪酬统计信息
	 * @param year
	 * @param month
	 * @return
	 */
	public List<TUserPayReport> getTUserPayReportList(@Param("year")int year,@Param("month")int month,
			@Param("name")String name,@Param("jobnumber")String jobnumber,
			@Param("organizationid")int organizationid,
			@Param("currentPage")int currentPage,@Param("pageSize")int pageSize);
	/**
	 * 获取薪酬统计信息条数
	 * @param year
	 * @param month
	 * @return
	 */
	public int getTUserPayReportNum(@Param("year")int year,@Param("month")int month,
			@Param("name")String name,@Param("jobnumber")String jobnumber,
			@Param("organizationid")int organizationid);
	/**
	 * 根据ID获取用户薪酬信息
	 * @param id
	 * @return
	 */
	public TUserPayReport getTUserPayReportByid(@Param("id")String id);
	/**
	 * 批量新增用户薪酬信息
	 * @param payreport
	 * @return
	 */
	public int insertTUserPayReportList(@Param("paylist")List<TUserPayReport> paylist);
	/**
	 * 根据年月删除薪酬报表
	 * @param year
	 * @param month
	 * @return
	 */
	public int deleteTUserPayReportList(@Param("year")int year,@Param("month")int month);
	
	/**
	 * 根据用户ID获取用户薪酬信息
	 * @param id
	 * @return
	 */
	public TUserPayReport getTUserPayReportByUserid(@Param("id")String id,@Param("year")String year,@Param("month")String month);
}
